<?
##########################################################################
#		DOCUMENTATION
##########################################################################
# Class that extends the rootclass. This module will provide the methods
# needed to render the signin page.
#
# © LiberLab group, 2011
##########################################################################

require_once("base/sendData.php");

class Renderer extends SendData{
	public function __construct() {
		parent::__construct("signin", "signin");
	}
	
	public function main(){
		$noUser = getParam("no_user", ""); 				$noPassword = getParam("no_password", "");
		$noMatch = getParam("no_match", ""); 			$noValidEmail = getParam("no_email", "");
		$nicknameOver = getParam("nickname_over", ""); 	$generic = getParam("generic", "");
		# render the hidden values
		$this->renderHidden();
		# render the warning box with the param given
		$this->warnBoxManager(array("noUser" => $noUser, "noPassword" => $noPassword, "noMatch" => $noMatch,
									"noValidEmail" => $noValidEmail, "nicknameOver" => $nicknameOver, "generic" => $generic));
		return $this->render();
	}

	public function __destruct() {
		parent::__destruct();
	}
};

?>
